<?php
class AbstractDSBase
{
	/**
	 * The Entity Object will be created with some default value before calling create function
	 *
	 * @access public
	 *
	 * @param Entity
	 *
	 * @return Entity
	 *
	 */
	protected function beforeInsert($entity)
	{
		// Set value for entity
		$entity->creation_date = date("Y-m-d H:i:s");
		$entity->modified_date = date("Y-m-d H:i:s");

		// Return Entity
		return $entity;
	}
}